//# 1 "/tmp/tews/ov-dist/ov-chip-2-2010-09-20/gui/netbeans/ov_demo_gui/src/ds/ov2/gui/Progress_messages.java"
// 
// OV-chip 2.0 project
// 
// Digital Security (DS) group at Radboud Universiteit Nijmegen
// 
// Copyright (C) 2009
// 
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation; either version 2 of
// the License, or (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License in file COPYING in this or one of the
// parent directories for more details.
// 
// Created 13.06.09 by Hendrik
// 
// netbeans generated code for progress messages
// 
// $Id: Progress_messages.java,v 1.1 2009-06-16 08:16:08 tews Exp $

package ds.ov2.gui;

import javax.swing.text.StyleConstants;
import javax.swing.text.StyledDocument;


/**
 * netbeans generated code for the progress message window.
 *
 *
 * @author Hendrik Tews
 * @version $Revision: 1.1 $
 * @commitdate $Date: 2009-06-16 08:16:08 $ by $Author: tews $
 * @environment host, card
 * @CPP no cpp preprocessing needed
 */
public class Progress_messages extends javax.swing.JDialog {

    /** serialVersionUID for Serializable interface */
    public static final long serialVersionUID = 1L;
    
    /** GUI action instance. */
    private Gui_actions gui_actions;

    /**
     * 
     * Create a new progress message window.
     * 
     * @param parent parent window
     * @param gui_actions GUI actions instance
     */
    public Progress_messages(java.awt.Frame parent, Gui_actions gui_actions) {
        super(parent, false);
        this.gui_actions = gui_actions;
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        progress_text_pane = new javax.swing.JTextPane();
        progress_dismiss_button = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Progress Messages"));

        jScrollPane1.setViewportView(progress_text_pane);
        StyledDocument progress_doc = (StyledDocument)progress_text_pane.getDocument();
        StyleConstants.setBold(progress_doc.addStyle("bold", null), true);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 342, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 185, Short.MAX_VALUE)
                .addContainerGap())
        );

        progress_dismiss_button.setText("Dismiss");
        progress_dismiss_button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                progress_dismiss_buttonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(progress_dismiss_button, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addComponent(progress_dismiss_button)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void progress_dismiss_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_progress_dismiss_buttonActionPerformed
        gui_actions.progress_dismiss_button();
}//GEN-LAST:event_progress_dismiss_buttonActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JButton progress_dismiss_button;
    javax.swing.JTextPane progress_text_pane;
    // End of variables declaration//GEN-END:variables

}
